import Vue from 'vue'
import VueRouter from 'vue-router'



Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: () => import( '../views/HomeView.vue'),
    //二级跳转路由
    children:[
      {
        path:'shouye',
        name:'shouye',
        alias:'',
        component: () => import( '../views/Shouye.vue'),
        //三级跳转路由
        children:[
          {
            path:'tuijian',
            name:'1',
            component: () => import( '../views/Tuijian.vue'),
            
          },
          {
            path:'jingxuan',
            name:'2',
            component: () => import( '../views/Jingxuan.vue'),
            
          },
          {
            path:'remen',
            name:'3',
            component: () => import( '../views/Remen.vue'),
            
          },
          {
            path:'juqing',
            name:'4',
            component: () => import( '../views/Juqing.vue'),
            
          },
          {
            path:'chuangyi',
            name:'5',
            component: () => import( '../views/Chuangyi.vue'),
            
          },
          {
            path:'teshu',
            name:'6',
            component: () => import( '../views/Teshu.vue'),
            
          },
          {
            path:'lvpai',
            name:'7',
            component: () => import( '../views/Lvpai.vue'),
            
          },
          {
            path:'ganhuo',
            name:'8',
            component: () => import( '../views/Ganhuo.vue'),
            
          },
          {
            path:'hunjian',
            name:'9',
            component: () => import( '../views/Hunjian.vue'),
            
          },
          {
            path:'qicai',
            name:'10',
            component: () => import( '../views/Qicai.vue'),
            
          },
          {
            path:'donghua',
            name:'11',
            component: () => import( '../views/Donghua.vue'),
            
          },
          {
            path:'vlog',
            name:'12',
            component: () => import( '../views/Vlog.vue'),
            
          },
          {
            path:'gufeng',
            name:'13',
            component: () => import( '../views/Gufeng.vue'),
            
          },
        ]
      },

      {
        path:'shouji',
        name:'shouji',
        component: () => import( '../views/Shouji.vue'),
    
      },
      {
        path:'faxian',
        name:'faxian',
        component: () => import( '../views/Faxian.vue'),
      },
     
      {
        path:'my',
        name:'my',
        component: () => import( '../views/My.vue'),
      },
      {
        path:'fenlei',
        name:'fenlei',
        component: () => import( '../views/Fenlei.vue'),
      },
      
    ],
    
  },

  {
    path:'/message',
    name:'message',
    component: () => import( '../views/Message.vue'),
  },

  {
    path:'/author',
    name:'author',
    component: () => import( '../views/Author.vue'),
    children:[
      {
        path:'zuopin',
        name:'zuopin',
        component: () => import( '../views/Authorzuopin.vue'),
      },
      {
        path:'zhuanji',
        name:'zhuanji',
        component: () => import( '../views/Authorzhuanji.vue'),
      },
      {
        path:'like',
        name:'like',
        component: () => import( '../views/Authorlike.vue'),
      }
    ]
  },
    
  
  {
    path: '/Notesdetails',
    name: 'Notesdetails',
    component: () => import( '../views/Notesdetails.vue')
  },
  {
    path: '/Categorie',
    name: 'Categorie',
    
    component: () => import( '../views/Categorie.vue'),
  },

  {
   path: '/search',
   name: 'search',
   component: () => import( '../views/Search.vue'),
 
  },

  {
    path: '/searchitem',
    name: 'searchitem',
    component: () => import( '../views/Searchitem.vue'),
  },


  {
    path: '/Creatores',
    name: 'Creatores',
    
    component: () => import( '../views/Creatores.vue'),
  },

  {
    path: '/allcategorie',
    name: 'Allcategorie',
    
    component: () => import( '../views/Allcategorie.vue'),
  },

  {
    path:'/Myfollow',
    name:'Myfollow',
    component: () => import( '../views/Myfollow.vue'),
  },
  {
    path:'/Login',
    name:'Login',
    component: () => import( '../views/Login.vue'),
  },
  

  
  

]

const router = new VueRouter({
  routes
})

export default router
